package tt.dz.entity.charger;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

@Entity
@IdClass(OmsChargerRateKey.class)
@Table(name = "oms_charger_rate")
public class OmsChargerRateEntity implements Serializable, Cloneable
{

	public OmsChargerRateEntity()
	{
	}

	public OmsChargerRateEntity(OmsChargerRateEntity vo)
	{
		setRateSchema(vo.getRateSchema());
		setSerialNo(vo.getSerialNo());
		setRateName(vo.getRateName());
		setChargeMode(vo.getChargeMode());
		setFeeType(vo.getFeeType());
		setStartTime(vo.getStartTime());
		setEndTime(vo.getEndTime());
		setRate(vo.getRate());
		setValidFlag(vo.getValidFlag());
		setOperId(vo.getOperId());
		setSetTime(vo.getSetTime());

		setDefaultInd(vo.getDefaultInd());
		setDefaultFor(vo.getDefaultFor());
	}

	@Id
	@Column(name = "rate_schema")
	private Integer rateSchema;
	@Id
	@Column(name = "serial_no")
	private Integer serialNo;
	@Column(name = "rate_name")
	private String rateName;
	@Column(name = "charge_mode")
	private Integer chargeMode;
	@Column(name = "fee_type")
	private Integer feeType;
	@Column(name = "start_time")
	private Time startTime;
	@Column(name = "end_time")
	private Time endTime;
	@Column(name = "rate")
	private BigDecimal rate;
	@Column(name = "valid_flag")
	private Integer validFlag;
	@Column(name = "oper_id")
	private String operId;
	@Column(name = "set_time")
	private Date setTime;
	@Column(name = "default_ind")
	private Integer defaultInd;
	@Column(name = "default_for")
	private String defaultFor;

	public Integer getRateSchema()
	{
		return rateSchema;
	}

	public void setRateSchema(Integer rateSchema)
	{
		this.rateSchema = rateSchema;
	}

	public Integer getSerialNo()
	{
		return serialNo;
	}

	public void setSerialNo(Integer serialNo)
	{
		this.serialNo = serialNo;
	}

	public String getRateName()
	{
		return rateName;
	}

	public void setRateName(String rateName)
	{
		this.rateName = rateName;
	}

	public Integer getChargeMode()
	{
		return chargeMode;
	}

	public void setChargeMode(Integer chargeMode)
	{
		this.chargeMode = chargeMode;
	}

	public Integer getFeeType()
	{
		return feeType;
	}

	public void setFeeType(Integer feeType)
	{
		this.feeType = feeType;
	}

	public Time getStartTime()
	{
		return startTime;
	}

	public void setStartTime(Time startTime)
	{
		this.startTime = startTime;
	}

	public Time getEndTime()
	{
		return endTime;
	}

	public void setEndTime(Time endTime)
	{
		this.endTime = endTime;
	}

	public BigDecimal getRate()
	{
		return rate;
	}

	public void setRate(BigDecimal rate)
	{
		this.rate = rate;
	}

	public Integer getValidFlag()
	{
		return validFlag;
	}

	public void setValidFlag(Integer validFlag)
	{
		this.validFlag = validFlag;
	}

	public String getOperId()
	{
		return operId;
	}

	public void setOperId(String operId)
	{
		this.operId = operId;
	}

	public Date getSetTime()
	{
		return setTime;
	}

	public void setSetTime(Date setTime)
	{
		this.setTime = setTime;
	}

	public Integer getDefaultInd()
	{
		return defaultInd;
	}

	public void setDefaultInd(Integer defaultInd)
	{
		this.defaultInd = defaultInd;
	}

	public String getDefaultFor()
	{
		return defaultFor;
	}

	public void setDefaultFor(String defaultFor)
	{
		this.defaultFor = defaultFor;
	}
}